<?php 
/**
 * User-View: `register`
 *
 * PHP versions 4 and 5
 *
 * TutoriumBase (http://tutoriumbase.my-reality.de)
 * Copyright 2012, Miguel Gonzalez (http://my-reality.de)
 *
 *
 * @copyright     Copyright 2012, Miguel Gonzalez (http://my-reality.de)
 * @link          http://tutoriumbase.my-reality.de TutoriumBase
 * @since         TutoriumBase v 0.1
 */

echo '<div class="box">';

if (isset($caption)) {
  echo $this->Layout->generateMainCaption($caption);
}

?>
<!-- Registrierungsformular -->
<div class="caption_small">Allgemein</div>
<?php 
echo $form->create('User', array('controller' => 'User', 'action' => 'register'));
echo $form->input('username', array('type' => 'text', 'label' => 'Username'));
echo $form->input('password', array('type' => 'password', 'label' => 'Passwort'));
echo $form->input('re_password', array('type' => 'password', 'label' => 'Passwort wiederholen'));
echo $form->input('email', array('type' => 'text', 'label' => 'E-Mail'));

?>
<div class="caption_small">Persönliches</div>
<?php
echo $form->input('firstname', array('type' => 'text', 'label' => 'Vorname'));
echo $form->input('lastname', array('type' => 'text', 'label' => 'Nachname'));
echo $form->input('biography', array('type' => 'textarea', 'label' => 'Über mich')); ?>

<div class="caption_small">Social Networks</div><?php
echo $form->input('goplus', array('type' => 'text', 'label' => 'Google+'));
echo $form->input('facebook', array('type' => 'text', 'label' => 'Facebook'));
echo $form->input('skype', array('type' => 'text', 'label' => 'Skype'));
echo $form->input('twitter', array('type' => 'text', 'label' => 'Twitter'));
echo $form->input('twittercon', array('class' => 'styled',
                                      'div' => null,
                                      'type' => 'checkbox',
                                      'label' => ' Account mit Twitter verbinden'));
echo $form->submit('Registieren', array('class' => 'button_green form_button'));
echo $form->end();
echo '</div>';
?>